-
-
Notifications
You must be signed in to change notification settings - Fork 683
chore: upgrade CI to Node 24 and migrate npm publishing to OIDC #2978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
chore: upgrade CI to Node 24 and migrate npm publishing to OIDC #2978
Conversation
Upgraded various GitHub Actions to newer major versions in workflow files for improved reliability and features. Enhanced the publish workflow with changelog generation, improved release handling, and npm tag management. Added a CHANGELOG.md file for documenting project changes.
|
To implement OIDC, not much change should occur in this repo. I intend to implement this myself. |
Noted. Should I close this PR.? |
HerrCai0907
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't do auto format, it make file hard to review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for people to see what changed.. The CI in this PR automatically modifies it from the PR merged. Can be removed if not required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my understanding, the file will not be automatically update when PR merged, because there are no git push operation in action. could you explain more about how to automatically modify it
HerrCai0907
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my understanding, the file will not be automatically update when PR merged, because there are no git push operation in action. could you explain more about how to automatically modify it
|
I would advise against messing with the npm publishing, because that's mostly Sidenote: if LLMs were used to generate the changes to CI, I would check over it. |
Warning
This PR is required to comply with npm's new security standard. npm deprecated all classic tokens on December 9, 2025 and now mandates OIDC Trusted Publishing for CI/CD workflows.
This PR is required by #2976.
Changes proposed in this pull request:
⯈ Upgrade GitHub Actions to v6 and Node.js 24
actions/checkoutfrom v4 to v6actions/setup-nodefrom v4 to v6actions/github-scriptfrom v7 to v8 (uses Node 24 runtime)node-version: currentto target Node 24node-version: currentto the features job which was missing it⯈ Migrate npm publishing to OIDC Trusted Publishing
NPM_TOKENenvironment variableid-token: writepermission required for OIDCregistry-urlto setup-node for npm authentication⯈ Add prerelease support and GitHub Release automation
mikepenz/release-changelog-builder-action@v6Migration steps required before merging:
Configure Trusted Publisher on npmjs.com for each package:
AssemblyScript, Repositoryassemblyscript, Workflowpublish.yml@assemblyscript/loaderand@assemblyscript/rtraceRemove
NPM_TOKENfrom repository secretsNODE_AUTH_TOKENis set, npm will try to use the token instead of OIDC and fail.Verify runners have npm 11.5.1+
node-version: current.